<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html><!-- InstanceBegin template="/Templates/Main.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>List Boxes</title>
<!-- InstanceEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
<link href="../../WinXStyles.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {
	font-size: x-large;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}
.style2 {
	font-size: large;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}
-->
</style>
</head>

<body>
<h1 class="style1"><img src="../../WinX48.png" width="48" height="48" align="absmiddle"> <!-- InstanceBeginEditable name="title" -->List Boxes<!-- InstanceEndEditable --></h1>
<hr>
<!-- InstanceBeginEditable name="body" -->
<p><img src="listbox.PNG" width="182" height="172"></p>
<p>List boxes display scrollable lists to the user. There are several reasons you might use a list box over a <a href="ComboBoxes.htm">combo box</a>. List boxes can be configured to allow the user to select multiple items. List boxes are also handy if the user will be manipulating list data, as in the Function Mover sample program. There are a number of functions included in WinX for managing the items in a list box.</p>
<h3>List box dragging</h3>
<p>You can allow the user to drag items in a list box by calling the <a href="../../WinX%20Function%20Reference/List%20Boxes.htm/WinXListBox_EnableDragging.htm">WinXListBox_EnableDragging</a> function. When the user drags an item, the onDrag callback is invoked multiple times to give you control over the dragging. Note that WinX doesn't move items when dragging is complete, that is your responsibility.</p>
<!-- InstanceEndEditable -->
<h2 class="style2">Related Links</h2>
<!-- InstanceBeginEditable name="Related Links" -->
<p><a href="../../WinX%20Function%20Reference/List%20Boxes.htm/WinXAddListBox.htm">WinXAddListBox</a><br>
  <a href="../../WinX%20Function%20Reference/List%20Boxes.htm/WinXListBox_AddItem.htm">WinXListBox_AddItem</a><br>
  <a href="../../WinX%20Function%20Reference/List%20Boxes.htm/WinXListBox_RemoveItem.htm">WinXListBox_RemoveItem</a><br>
  <a href="../../WinX%20Function%20Reference/List%20Boxes.htm/WinXListBox_GetSelection.htm">WinXListBox_GetSelection</a><br>
  <a href="../../WinX%20Function%20Reference/List%20Boxes.htm/WinXListBox_SetSelection.htm">WinXListBox_SetSelection</a><br>
  <a href="../../WinX%20Function%20Reference/List%20Boxes.htm/WinXListBox_GetIndex.htm">WinXListBox_GetIndex</a><br>
  <a href="../../WinX%20Function%20Reference/List%20Boxes.htm/WinXListBox_GetItem$.htm">WinXListBox_GetItem$</a><br>
  <a href="../../WinX%20Function%20Reference/List%20Boxes.htm/WinXListBox_EnableDragging.htm">WinXListBox_EnableDragging</a></p>
<!-- InstanceEndEditable -->
</body>
<!-- InstanceEnd --></html>
